<template >
    <fieldset class="thsoncom">
        <button @click="btn1()">点击了{{i}}次</button>
    </fieldset>
    </template>
<script setup>
import { ref } from 'vue';
 let i = ref('');
 let btn1 = ()=>{
        i.value++;
    }
 </script>
<style scoped>
.thsoncom{
        margin: 50px auto;
        width: 70%;
        display: flex;
        justify-content: space-around;
        height: 100px;
        align-items: center;
    }
    .thsoncom button{
        height: 30px;
        border: 0;
        background-color: rgb(151, 255, 182);
        border-radius: 4px;
    }
</style>